package com.bigShen.pattern.singleton.hung;

/**
 * @author: lei.shen
 * @Date: 2018/9/19
 * 优点: 效率高
 * 缺点: 不管用到用不到都会初始化,占用资源
 */
public class HungrySingleton {

    private static final HungrySingleton SINGLETON = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return SINGLETON;
    }

}
